<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <title>修改密码界面</title>
    <link rel="stylesheet" href="css/bootstrap.min.css" type="text/css" />
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
  </head>
  
  <body>
   		 
   		 <div class="container" style="margin-top:60px;width:400px">
   		 	<h1 style="color:blue">修改密码</h1>
   		 	<br/>
   		 	<form action="editpassword.jspx" method="post">
   		 		<div class="control-group">
		            <label for="input01" class="control-label">请您输入原密码</label>
		            <div class="controls">
		              <input type="password" id="input01" class="input-xlarge" name="oldpassword">
		              <%
		              	String wrongoldpw="";
		              	if(session.getAttribute("wrongoldpw")!=null){
		              		wrongoldpw=(String)session.getAttribute("wrongoldpw");
		              		session.setAttribute("wrongoldpw","");
		              	}
		              %>
		              <p class="help-block" style="color:red"><%=wrongoldpw %></p>
		            </div>
		    	</div>
	   		 	
	   		 	<div class="control-group">
		            <label for="input01" class="control-label">请您输入新密码</label>
		            <div class="controls">
		              <input type="password" id="input01" class="input-xlarge" name="newpassword">
		            </div>
		    	</div>
		    	
		    	<div class="control-group">
		            <label for="input01" class="control-label">重新输入新密码</label>
		            <div class="controls">
		              <input type="password" id="input01" class="input-xlarge" name="newpw">
		               <%
		              	String wrongnewpw="";
		              	if(session.getAttribute("wrongnewpw")!=null){
		              		wrongnewpw=(String)session.getAttribute("wrongnewpw");
		              		session.setAttribute("wrongnewpw","");
		              	}
		              %>
		              <p class="help-block" style="color:red"><%=wrongnewpw%></p>
		            </div>
		    	</div>
		    	
		    	<div class="form-actions" style="height:20px">
		           	 <button class="btn btn-primary" type="submit" style="margin-left:10px;font-size:16px">修改</button>
		           	 <a href="tran.jspx?name=main" style="margin-left:200px"><button class="btn btn-primary" type="button" style="font-size:16px">返回</button></a>
		        </div>
   		 	</form>
	    	
   		 </div>
    
  </body>
</html>
